import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import './utils/flexible'
import './permission'  //引入全局前置导航守卫，用来做登录身份认证


Vue.config.productionTip = false;

//引入vant组件
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

//图片懒加载
import { Lazyload } from 'vant';
Vue.use(Lazyload);

import ButtomTabbar from '@/components/bottom-tabbar.vue'  //引入底部导航组件
Vue.component('ButtomTabbar',ButtomTabbar)  //全局注册


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
